package com.ibeeking.found.file.rest.service;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;

/**
 * @ClassName IOssFileService
 * @Description
 * @Author ibeeking
 * @Date 2021-06-24 19:23
 **/
public interface IOssFileService {

    /**
     * 查询文件流
     *
     * @param fileName
     * @param response
     */
    void queryFile(String fileName, HttpServletResponse response);

    /**
     * 文件下载
     *
     * @param filName
     * @param localFilePath
     */
    String download(String filName, String  localFilePath);
    /**
     * 文件下载
     *
     * @param filName
     * @param response
     */
    void download(String filName, HttpServletResponse response);

    /**
     * 文件上传
     *
     * @param fullFilePath
     * @param inputStream
     * @return
     */
    String upload(String fullFilePath, InputStream inputStream);
}
